package com.xiaowu.house.house.feign;


import com.xiaowu.house.domain.R;
import com.xiaowu.house.house.domain.vo.HouseDetailVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "houseFeignClient", value = "xiaowu-admin", path = "/house")
public interface HouseFeignClient {
    /**
     * 查询房源详情（带缓存）
     */
    @GetMapping("/detail")
    R<HouseDetailVO> detail(@RequestParam Long houseId);
}
